package org.dxy.domain.event.mbom;

import org.dxy.domain.event.AggregateTypeEnum;
import org.dxy.domain.event.DomainEvent;

/**
 * MBOM提交审核事件
 * @author dxy
 * @createTime 2025/9/10
 */
public record MBOMSubmittedForReviewEvent(
    /** MBOM ID */
    Long mbomId,
    /** 审核人ID */
    Long reviewerId
) implements DomainEvent {
    
    @Override
    public Long aggregateId() {
        return mbomId;
    }
    
    @Override
    public String aggregateType() {
        return AggregateTypeEnum.MBOM.getKey();
    }
    
    @Override
    public String eventType() {
        return MBOMEventTypeEnum.SUBMITTED_FOR_REVIEW.getKey();
    }
}